#include "Entity.h"
#include "../World/World.h"


namespace Facets {
	Entity::Entity(const core::vector3df& pos, const core::vector3df& dir) : 
		Object(pos, dir) {
		CreateCamera();
	}
	
	Entity::Entity(const core::vector3df& pos, const core::vector3df& dir, s32 ms) : 
		Object(pos, dir, ms) {
		CreateCamera();
	}
	
	Entity::Entity(const core::vector3df& pos, const core::vector3df& dir, s32 ms, s32 as, s32 ss) : 
		Object(pos, dir, ms, as, ss) {
		CreateCamera();
	}
	
	bool Entity::CreateCamera() {
		m_camera = Facets::World::GetCameraFactory()->CreateCamera(m_Position,m_Direction);
	}

	Entity::~Entity() {
	}
}
